import net.optix.ip.model.ModelLocator;
import views.ViewInstance;
[Bindable]
private var model:ModelLocator	=	ModelLocator.getInstance();

private var _view:int;

public function set view(value:int):void
{
	_view	=	value;

	switch(value)
	{
		case ViewInstance.InventionIndex:
			this.selectedIndex	=	0;
			break;
		case ViewInstance.ViewInvention:
			this.selectedIndex	=	1;
			break;
		case ViewInstance.ViewBids:
			this.selectedIndex	=	2;
			break;
	}
}

public function get view():int
{
	return _view;
}